<%@ Control Language="VB" AutoEventWireup="false" CodeFile="ctlDatosSocioSolicitud.ascx.vb" Inherits="Pages_Controls_ctlDatosSocioSolicitud" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v10.1, Version=10.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
        <table>
            <tr>
                <td style="width: 142px; height: 21px">
                </td>
                <td style="height: 21px">
                </td>
                <td style="height: 21px">
                </td>
                <td style="width: 7px; height: 21px">
                </td>
            </tr>
            <tr>
                <td style="width: 142px; height: 81px;">
                    <dx:ASPxRadioButtonList ID="optTipo" runat="server" CssFilePath="~/App_Themes/Youthful/{0}/styles.css"
                        CssPostfix="Youthful" Font-Bold="True" SpriteCssFilePath="~/App_Themes/Youthful/{0}/sprite.css"
                        TextSpacing="4px" SelectedIndex="0" ValueType="System.Int32">
                        <Items>
                            <dx:ListEditItem Selected="True" Text="Por DNI" Value="1" />
                            <dx:ListEditItem Text="Por Codigo" Value="2" />
                        </Items>
                    </dx:ASPxRadioButtonList>
                </td>
                <td style="height: 81px">
                    <dx:ASPxTextBox ID="txtCodigoPersona" runat="server" CssFilePath="~/App_Themes/Youthful/{0}/styles.css"
                        CssPostfix="Youthful" SpriteCssFilePath="~/App_Themes/Youthful/{0}/sprite.css"
                        Width="170px">
                        <ValidationSettings>
                            <ErrorFrameStyle ImageSpacing="4px">
                                <ErrorTextPaddings PaddingLeft="4px" />
                            </ErrorFrameStyle>
                        </ValidationSettings>
                    </dx:ASPxTextBox>
                </td>
                <td style="height: 81px">
                    <dx:ASPxButton ID="btnSeleccionar" runat="server" AutoPostBack="False" CausesValidation="False"
                        CssFilePath="~/App_Themes/Youthful/{0}/styles.css" CssPostfix="Youthful" Font-Bold="True"
                        Height="12px" OnClick="btnSeleccionar_Click" SpriteCssFilePath="~/App_Themes/Youthful/{0}/sprite.css"
                        Text="Cargar" Width="74px">
                        <Image Url="~/Images/icons/page_copy.png">
                        </Image>
                    </dx:ASPxButton>
                </td>
                <td style="width: 7px; height: 81px;">
                    &nbsp;</td>
            </tr>
        </table>
        <br />
        <table style="width: 683px">
            <tr>
                <td style="width: 143px">
                </td>
                <td>
                    <dx:ASPxTextBox ID="txtTitularID" runat="server" ClientVisible="False" CssFilePath="~/App_Themes/Youthful/{0}/styles.css"
                        CssPostfix="Youthful" SpriteCssFilePath="~/App_Themes/Youthful/{0}/sprite.css"
                        Text="0" Width="170px" Visible="False">
                        <ValidationSettings>
                            <ErrorFrameStyle ImageSpacing="4px">
                                <ErrorTextPaddings PaddingLeft="4px" />
                            </ErrorFrameStyle>
                        </ValidationSettings>
                    </dx:ASPxTextBox>
                </td>
                <td>
                </td>
                <td>
                </td>
            </tr>
            <tr>
                <td style="width: 143px">
                    <dx:ASPxLabel ID="lblNombres" runat="server" Font-Bold="True" Text="Nombre y Apellidos:"
                        Width="135px">
                    </dx:ASPxLabel>
                </td>
                <td>
                    <dx:ASPxTextBox ID="txtNombreApellido" runat="server" CssFilePath="~/App_Themes/Youthful/{0}/styles.css"
                        CssPostfix="Youthful" SpriteCssFilePath="~/App_Themes/Youthful/{0}/sprite.css" Width="470px">
                        <ValidationSettings>
                            <ErrorFrameStyle ImageSpacing="4px">
                                <ErrorTextPaddings PaddingLeft="4px" />
                            </ErrorFrameStyle>
                        </ValidationSettings>
                    </dx:ASPxTextBox>
                </td>
                <td>
                </td>
                <td>
                </td>
            </tr>
            <tr>
                <td style="width: 143px">
                    <dx:ASPxLabel ID="lblEstadoSocio" runat="server" Font-Bold="True" Text="Estado de Pago:"
                        Width="144px">
                    </dx:ASPxLabel>
                </td>
                <td>
                    <dx:ASPxTextBox ID="txtEstadoDePago" runat="server" CssFilePath="~/App_Themes/Youthful/{0}/styles.css"
                        CssPostfix="Youthful" SpriteCssFilePath="~/App_Themes/Youthful/{0}/sprite.css" Width="384px">
                        <ValidationSettings>
                            <ErrorFrameStyle ImageSpacing="4px">
                                <ErrorTextPaddings PaddingLeft="4px" />
                            </ErrorFrameStyle>
                        </ValidationSettings>
                    </dx:ASPxTextBox>
                </td>
                <td>
                </td>
                <td>
                </td>
            </tr>
            <tr>
                <td style="width: 143px">
                    <dx:ASPxLabel ID="lblTipoSolicitud" runat="server" Font-Bold="True" Text="Tipo Solicitud :"
                        Width="137px">
                    </dx:ASPxLabel>
                </td>
                <td>
                    <dx:ASPxRadioButtonList ID="ASPxRadioButtonList1" runat="server" CssFilePath="~/App_Themes/Youthful/{0}/styles.css"
                        CssPostfix="Youthful" Font-Bold="True" RepeatDirection="Horizontal" SelectedIndex="0"
                        SpriteCssFilePath="~/App_Themes/Youthful/{0}/sprite.css" TextSpacing="4px" Width="514px">
                        <Items>
                            <dx:ListEditItem Selected="True" Text="Transferencia" Value="1" />
                            <dx:ListEditItem Text="Vitalicio" Value="2" />
                            <dx:ListEditItem Text="Cese" Value="3" />
                        </Items>
                    </dx:ASPxRadioButtonList>
                </td>
                <td>
                </td>
                <td>
                </td>
            </tr>
            <tr>
                <td style="width: 143px">
                    <dx:ASPxLabel ID="lblNuevoTitular" runat="server" Font-Bold="True" Text="Nuevo Titular:"
                        Width="144px">
                    </dx:ASPxLabel>
                </td>
                <td>
                    <dx:ASPxComboBox ID="cmbFamiliar" runat="server" CssFilePath="~/App_Themes/Youthful/{0}/styles.css"
                        CssPostfix="Youthful" DataSourceID="ObjectDataSourceFamiliares" IncrementalFilteringMode="Contains"
                        LoadingPanelImagePosition="Bottom" ShowShadow="False" SpriteCssFilePath="~/App_Themes/Youthful/{0}/sprite.css"
                        TextField="Nombre" ValueField="ID" ValueType="System.Int32">
                        <ClientSideEvents BeginCallback="function(s, e) { OnBeginCallback(); }" EndCallback="function(s, e) { OnEndCallback(); } " />
                        <LoadingPanelImage Url="~/App_Themes/Youthful/Editors/Loading.gif">
                        </LoadingPanelImage>
                        <ValidationSettings>
                            <ErrorFrameStyle ImageSpacing="4px">
                                <ErrorTextPaddings PaddingLeft="4px" />
                            </ErrorFrameStyle>
                        </ValidationSettings>
                    </dx:ASPxComboBox>
                </td>
                <td>
                </td>
                <td>
                </td>
            </tr>
            <tr>
                <td style="width: 143px; height: 21px">
                </td>
                <td style="height: 21px">
                    <dx:ASPxButton ID="btnGrabar" runat="server" CssFilePath="~/App_Themes/Youthful/{0}/styles.css"
                        CssPostfix="Youthful" Font-Bold="True" OnClick="btnGrabar_Click" SpriteCssFilePath="~/App_Themes/Youthful/{0}/sprite.css"
                        Text="Grabar">
                        <Image Url="~/Images/icons/page_save.png">
                        </Image>
                    </dx:ASPxButton>
                </td>
                <td style="height: 21px">
                </td>
                <td style="height: 21px">
                </td>
            </tr>
            <tr>
                <td style="width: 143px; height: 21px">
                </td>
                <td style="height: 21px">
                    <dx:ASPxLabel ID="lblMensaje" runat="server" ForeColor="#CC0000" Visible="False"
                        Width="689px">
                    </dx:ASPxLabel>
                </td>
                <td style="height: 21px">
                </td>
                <td style="height: 21px">
                </td>
            </tr>
        </table>
        <br />
        <asp:ObjectDataSource ID="ObjectDataSourceFamiliares" runat="server" SelectMethod="GetNombreFamiliaresSocio"
            TypeName="BusinessLogic.crFichaSolicitud">
            <SelectParameters>
                <asp:ControlParameter ControlID="txtTitularID" DefaultValue="0" Name="TitularID"
                    PropertyName="Text" Type="Int32" />
            </SelectParameters>
        </asp:ObjectDataSource>
    </ContentTemplate>
</asp:UpdatePanel>
